/*
 * @Author: dlb
 * @Date: 2020-07-03 14:04:05
 * @LastEditTime: 2020-07-03 14:05:33
 * @LastEditors: dlb
 * @Description:
 * @FilePath: \zhufeng-cli-project\my-cli2\src\constants.js
 * @可以输入预定的版权声明、个性签名、空行等
 */
import { version } from '../../package.json'
export const VERSION = version

//找到用户的根  目录
const HOME = process.env[process.platform === 'win32' ? "USERPROFILE" : "HOME"];
//console.log(process.platform)//win32  node运行的操作系统的环境时显示内核相关的信息
//process.env.USERPROFILE  //当前目录下配置的文件

export const RC = `${HOME}/.zfclirc`;

//RC配置下载(模板)的地方
//给github的api来用的
export const DEFAULTS = {
    registry: 'zhufeng-cli',
    type: 'orgs'
}